
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class GuildRunbusinessCfg : public ManualSingleton <GuildRunbusinessCfg>
{
	friend ManualSingleton <GuildRunbusinessCfg>;
public:
	GuildRunbusinessCfg();
	~GuildRunbusinessCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const GuildRunbusinessCfgInfo *GetGuildRunbusinessCfgInfo(int32_t couponId);
	const GuildRunbusinessCfgMap *GetGuildRunbusinessCfgMap() { return &m_GuildRunbusinessCfgMap; }
private:
	GuildRunbusinessCfgMap m_GuildRunbusinessCfgMap;
};

#define  g_MakeGuildRunbusinessCfgTable() (GuildRunbusinessCfg::Instance())
#define  g_GetGuildRunbusinessCfgTable() (GuildRunbusinessCfg::GetInstance())
#define  g_DelGuildRunbusinessCfgTable() (GuildRunbusinessCfg::Destroy())